package com.yyd.designmodel.responsibilitychain.impl;

import com.yyd.designmodel.responsibilitychain.Filter;
import com.yyd.designmodel.responsibilitychain.FilterChain;
import com.yyd.designmodel.responsibilitychain.Request;
import com.yyd.designmodel.responsibilitychain.Response;

public class FaceFilter implements Filter {

    public void doFilter(Request request, Response response, FilterChain chain) {
        request.requestStr = request.getRequestStr().replace(":)","^V^------FaceFilter");
        chain.doFilter(request, response, chain);
        response.responseStr += "------FaceFilter";
    }

}
